<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{tdForm.bundleName}"/>
    <head>
        <title>#{text['tdDetail.title']}</title>
        <meta name="heading" content="#{text['tdDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="tdForm">

<h:form id="tdForm" onsubmit="return validateTdForm(this)">
<h:inputHidden value="#{tdForm.td.id}" id="id"/>
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="dlwz" value="#{text['td.dlwz']}"/>
    <t:message for="dlwz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="dlwz" value="#{tdForm.td.dlwz}" required="false" maxlength="100">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="gjjz" value="#{text['td.gjjz']}"/>
    <t:message for="gjjz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="gjjz" value="#{tdForm.td.gjjz}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="htqx" value="#{text['td.htqx']}"/>
    <t:message for="htqx" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="htqx" value="#{tdForm.td.htqx}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="mj" value="#{text['td.mj']}"/>
    <t:message for="mj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="mj" value="#{tdForm.td.mj}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="nzj" value="#{text['td.nzj']}"/>
    <t:message for="nzj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="nzj" value="#{tdForm.td.nzj}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="operation" value="#{text['td.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{tdForm.td.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['td.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{tdForm.td.optdate}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="tdxz" value="#{text['td.tdxz']}"/>
    <t:message for="tdxz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="tdxz" value="#{tdForm.td.tdxz}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['td.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{tdForm.td.username}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="xh" value="#{text['td.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{tdForm.td.xh}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="yjcrj" value="#{text['td.yjcrj']}"/>
    <t:message for="yjcrj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="yjcrj" value="#{tdForm.td.yjcrj}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="yjsynx" value="#{text['td.yjsynx']}"/>
    <t:message for="yjsynx" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="yjsynx" value="#{tdForm.td.yjsynx}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zymj" value="#{text['td.zymj']}"/>
    <t:message for="zymj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zymj" value="#{tdForm.td.zymj}" required="false" maxlength="255">
    </h:inputText>

    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{tdForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty tdForm.td.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{tdForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Td')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateTdForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('tdForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
